import request from '@/utils/request'

export function getLogStored (parameter) {
  return request({
    url: '/boss/log/add',
    method: 'post',
    data: parameter
  })
}
export function getLogList (parameter) {
  return request({
    url: '/boss/log/opt/list',
    method: 'post',
    data: parameter
  })
}
export function getLogExport (parameter) {
  return request({
    url: '/boss/log/export',
    method: 'get',
    params: parameter,
    responseType: 'blob'
  })
}
export function getEventList (parameter) {
  return request({
    url: '/boss/log/event/list',
    method: 'post',
    data: parameter
  })
}
export function addEvent (parameter) {
  return request({
    url: '/boss/log/event/add',
    method: 'post',
    data: parameter
  })
}
export function updateEvent (parameter) {
  return request({
    url: '/boss/log/event/update',
    method: 'post',
    data: parameter
  })
}
export function deleteEvent (parameter) {
  return request({
    url: '/boss/log/event/delete',
    method: 'post',
    data: parameter
  })
}
